
<div id="content">
<h5 class="info-title">Article Editor</h5>
<h2>New Article</h2>
<p>To create a new article, simply type the title of the article and press create. The article with the given title will now be editable using the article editor.</p>
<form action="plugin/base/cms/article/newarticle.php" method="post">
<table border="0">
  <tr>
    <td>Title:</td>
    <td>
      <INPUT type="TEXT" name="newtitle" size="74"><INPUT type="SUBMIT" value="Create" name="newform">
    </td>
  </tr>
  </table>
</form>
<a href="#top">Top ^</a>



<h2>Article Editor</h2>
<p>To Edit an article, first select the article.
You can filter the results of the article selection box based on tag and date.
</p>

<?php
$sql = "SELECT articleID, articleTITLE FROM Article";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
    $id = $row["articleID"];
    $thing = $row["articleTITLE"];
    $options.= "<option value='" . $id . "'>" . $thing . "</option>";
}
?>

<form>
<select name="eventID" onchange="autoFill();">
<OPTION VALUE=0>Select event...<?php echo $options; ?>'</select>
</form>

<form name="editARTICLE" method="post" action="">
<b>Select an article:</b>
	<select name="selected" onchange="autoFill()">

	<option value=''>-- Select --</option>
        <?php echo $options; ?>
        </select>
        
    <br/><br/>
	<table>
	<tr><td><b>ID:</b></td><td><input name="article_id" type="text" id="article_id" size="30" /></td></tr>
	<tr><td><b>Header:</b></td><td><input name="article_header" type="text" id="article_header" size="30" /></td></tr>
	<tr><td><b>Content:</b></td><td><input name="article_content" type="text" id="article_content" size="30" /></td></tr>
	<tr><td><b>Footer:</b></td><td><input name="article_footer" type="text" id="article_footer" size="30" /></td></tr>
	<tr><td colspan='2' align='center'><input type="submit" name="Submit" value="Save Changes" /></td></tr>

	</table>
</form>



</div>
</div>



